package com.gasstion.service.impl;


import com.gasstion.dao.GoodsDao;
import com.gasstion.dao.OilCardDao;
import com.gasstion.entity.Goods;
import com.gasstion.entity.OilCard;
import com.gasstion.service.OilCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OilCardServiceImpl implements OilCardService {
    @Autowired
    private OilCardDao oilCardDao ;

    @Override
    public List<OilCard> getAll() {
        return null;
    }

    @Override
    public List<OilCard> findAll(String username, int offset, int limit) {
        return oilCardDao.querySearch(username,offset,limit);
    }

    @Override
    public long findTotalCount(String username) {
        return oilCardDao.getTotalCount(username) ;
    }
}
